[t:/]$ 지식_

gcc disasm with c source

2019/09/25
gcc -O -fverbose-asm -S g.c

스택오버플로우

결과

...
.L40:
# g.c:127:             if (!sp->next[i]) {
    movq    (%rbx), %rdi    # MEM[base: _15, offset: 0B], _1
    testq   %rdi, %rdi  # _1
    jne .L38    #,
# g.c:129:              sp->next[i] = &sym_dict;
    movq    %r12, (%rbx)    # tmp97, MEM[base: _15, offset: 0B]
    jmp .L39    #
.L43:
# g.c:136: }
    popq    %rbx    #
    .cfi_def_cfa_offset 24
    popq    %rbp    #
    .cfi_def_cfa_offset 16
...




공유하기













[t:/] is not "technology - root". dawnsea, rss